class ProductsController < ApplicationController

  before_action :contact_me, :set_banner

  def index
    @products = Product.language(current_language).paginate(page: params[:page])
  end

  def show
    @product = Product.find params[:id]
  end

  private

  def set_banner
    @banner = Banner.product.first
  end

end
